<?php
$_head_profile_attr = '';
if ( bb_is_profile() ) {
	global $self;
	if ( !$self ) {
		$_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"';
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>> 
<head<?php echo $_head_profile_attr; ?>>
	<title><?php bb_title() ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Pragma" content="no-cache" /> 
	<meta http-equiv="Expires" content="Sun, 6 Mar 2005 01:00:00 GMT" /> 
    <link href="http://otho.douban.com/css/packed_douban179.css" rel="stylesheet" type="text/css" />
    <script src="http://otho.douban.com/js/packed_jquery0.js"></script>
    <script src="http://otho.douban.com/js/packed_jquery.suggest1.js"></script>
    <script src="http://otho.douban.com/js/packed_douban53.js"></script>
    <script type="text/javascript">/*<![CDATA[*//*]]>*/</script>
    <link rel="shortcut icon" href="http://t.douban.com/favicon.ico" type="image/x-icon" /> 
    <style type="text/css">
	fieldset{ border-width:0;}
	</style>
    <?php bb_feed_head(); ?>
	<?php bb_head(); ?>
    </head> 
<body> 
    <div id="wrapper"> 
    
    <div id="header"> 
	<form id="ssform" name="ssform" method="get" action="<?php bb_uri('search.php', null, BB_URI_CONTEXT_FORM_ACTION); ?>"> 
    <a href="http://www.douban.com" title="豆瓣"><img src="http://t.douban.com/pics/logosmall.gif" alt="douban" class="logo"/></a>
    	<div id="nav">
    		<a href="#nogo">首页</a>
    		<a href="#nogo">我的豆瓣</a>
    		<a href="#nogo">友邻</a>
    		<a class="#nogo" href="/group/"><span>小组</span></a> 
    		<a href="#nogo">读书</a>
    		<a href="#nogo">电影</a>
    		<a href="#nogo">音乐</a>
    		<a href="#nogo">同城</a>
    		<a target="_blank" href="http://9.douban.com" class="nine_nav">九点</a> 
    	</div>
    <div id="searbar"> 
    <?php search_form(); ?>
    </div>
    
    <div class="clear"></div>
    <div id="status">
    	<div id="subnav">
    	<a href="">我的小组</a>
    	<a href="">我的发言</a>
    	<a href="">更多小组</a> 
    	</div>
    	
    	<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
    </div> 
    <div class="clear"></div>
    </form>
</div>